/**
 * FileName: MessageEvent
 * Author: Administrator
 * Date: 2020/12/8 0008 19:36
 * Description:
 */
package com.linkage.linkedlife.model;

/**
 * @ClassName: MessageEvent
 * @Description: java类作用描述
 * @Author: Clakr
 * @Date: 2020/12/8 0008 19:36
 */

public class RefreshMessageEvent {
    public static volatile RefreshMessageEvent messageEvent = null;
    public String message;
    public String type;

    public RefreshMessageEvent(String type, String msg) {
        this.type=type;
        this.message = msg;
    }


    public RefreshMessageEvent getInstance(String type, String msg) {

        if (messageEvent == null) {
            synchronized (this) {
                if (messageEvent == null) {
                    messageEvent = new RefreshMessageEvent(type,msg);
                }
            }
        }
        return messageEvent;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
